package com.felight.ems.collections;
import java.util.*;

class Lists{
	public static void main(String[] args){
		List<String> listOfColors = new ArrayList<String>();
		listOfColors.add("Blue");
		listOfColors.add("Lavender");
		listOfColors.add("Black");
		listOfColors.add("White");
		listOfColors.add("Purple");
		System.out.println("The colors present in the list are:"+listOfColors);
		System.out.println("The size of the list is:"+listOfColors.size());
		System.out.println("Whether the color is removed:"+listOfColors.remove("Purple"));
		System.out.println("The size of the list after removing:"+listOfColors.size());
		System.out.println("The colors present in list after modifying:"+listOfColors);
	}
}